'use strict';
	const db = uniCloud.database();
exports.main = async (event, context) => {
	if(!event._id){
		return {code:400 , message:'删除失败'}
	}else{
		let res = await db.collection('leaveAmessage').where(event).remove()
		return {data:res.data , code:200 , message:"删除成功"}
	}

};
